package com.xxxx.service.impl;

import com.xxxx.dao.UserDao;
import com.xxxx.pojo.User;
import com.xxxx.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created By ShaoXikai on 2022/7/20
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> queryAllStuInfo() {
        return userDao.queryAllStuInfo();
    }

    @Override
    public int addUser(User user) {
        return userDao.addUser(user);
    }

    @Override
    public User findById(Integer id) {
        return userDao.findById(id);
    }

    @Override
    public int delById(Integer id) {
        return userDao.delById(id);
    }

}
